cmake_minimum_required (VERSION 3.5)
project (Openssl_1.1.1_u)


SET(SRC_LISTS ${PROJECT_SOURCE_DIR}/src/main.cpp)
   
# 配置工程需要的头文件目录 
include_directories(${PROJECT_SOURCE_DIR}/include)


IF(WIN32)
	set(PRO_OPENSSL_LIB ${PROJECT_SOURCE_DIR}/lib/x86/libssl.lib ${PROJECT_SOURCE_DIR}/lib/x86/libcrypto.lib)
ELSEIF(UNIX)
	set(PRO_OPENSSL_LIB ${PROJECT_SOURCE_DIR}/lib/gcc_x64/libcrypto.so.1.1 ${PROJECT_SOURCE_DIR}/lib/gcc_x64/libssl.so.1.1)	
ENDIF()


ADD_EXECUTABLE(Openssl_1.1.1_u ${SRC_LISTS})
TARGET_LINK_LIBRARIES(Openssl_1.1.1_u ${PRO_OPENSSL_LIB})
